home *** CD-ROM | disk | FTP | other *** search
- #include "About.h"
- #include "FontMancer.h"
- #include "StandardEvent.h"
- #include <Sound.h>
-
- extern Boolean gInBackground;
- extern Boolean gSManager;
-
- void DisplayAboutBox() {
-
- DialogPtr AboutDlg;
- short itemHit = -1;
- Handle hSound;
-
- gInBackground = TRUE;
- DoActivateMainWindow();
- /*hSound = GetResource('snd ',128);
- HLock(hSound);*/
- AboutDlg = GetNewDialog(rAboutBox,0,(WindowPtr) -1L);
- SetDialogDefaultItem(AboutDlg,ok);
- while (itemHit != ok) {
- ModalDialog(NIL,&itemHit);
- //if (itemHit == 2 && hSound && gSManager)
- // SndPlay(NIL,(SndListHandle) hSound,FALSE);
- }
- /*HUnlock(hSound);
- ReleaseResource(hSound);*/
- DisposeDialog(AboutDlg);
- gInBackground = FALSE;
- DoActivateMainWindow();
- }